﻿@using EyeOpen.Warehouse.Mvc.Helpers
@model EyeOpen.Warehouse.Mvc.ViewModel.Models.CustomerListModel
<div id="@EyeOpen.Warehouse.Mvc.Helpers.Helper.DoneUpdateTargetId">
	@foreach (var customerModel in Model.CustomerModelList)
	{
		<span>@customerModel.Name</span>
		<br />
	}
	@if (Model.CustomerModelList.Count() > 0)
	{
		<br />
	}
	
	@using (Ajax.BeginForm(EyeOpen.Warehouse.Mvc.Helpers.Helper.DefaultOptions))
	{
		@Ajax.ActionLink("Delete all", "DeleteAll", EyeOpen.Warehouse.Mvc.Helpers.Helper.DoneDefaultOptions.Change(x => x.Confirm = "Do you want to delete all customers?"))
		<br />
		@Ajax.ActionLink("Create", "Create", EyeOpen.Warehouse.Mvc.Helpers.Helper.DefaultOptions)
	}
	<div id="@EyeOpen.Warehouse.Mvc.Helpers.Helper.UpdateTargetId"></div>
</div>